Skip to content

Improve performance and ease dependency requirements - #18

Merged
ttrotto merged 18 commits into
mainfrom
dev
Jun 16, 2026
Merged

Improve performance and ease dependency requirements#18
ttrotto merged 18 commits into
mainfrom
dev

Conversation

@ttrotto

@ttrotto ttrotto commented Jun 16, 2026

Copy link
Copy Markdown
Owner

This PR improves rasterization performance by >= 10% for small and large geometries by:

  • simplifying how values are burned onto the raster
  • having ad-hoc rasterization loops depending on the input values

Input data type has been extended to geopandas.GeoSeries and list[shapely.Geometry].

In addition, the burn argument now accepts a numpy array of burn values (must match geometry length), bypassing the need to construct a custom GeoDataFrame/GeoSeries as data input and requiring polars to be installed. This keeps dependecies to a minimum (rasterix #93)

@ttrotto
ttrotto merged commit 9a2ba54 into main Jun 16, 2026
@ttrotto
ttrotto deleted the dev branch June 25, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant